home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Atari Mega Archive 1
/
Atari Mega Archive - Volume 1.iso
/
language
/
dl_exsrc.zoo
/
strnset.c
< prev
next >
Wrap
C/C++ Source or Header
|
1994-06-28
|
239b
|
16 lines
#include "extras.h"
char *strnset(string, c, count)
char *string;
int c;
register int count;
{
register char *s = string;
if (!s)
return 0;
while (--count >= 0 && *s)
*s++ = (char)c;
return string;
}